[ 
https://issues.apache.org/jira/browse/BEAM-14240?focusedWorklogId=755427&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-755427
 ]

ASF GitHub Bot logged work on BEAM-14240:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Apr/22 20:23
            Start Date: 11/Apr/22 20:23
    Worklog Time Spent: 10m 
      Work Description: jrmccluskey commented on code in PR #17340:
URL: https://github.com/apache/beam/pull/17340#discussion_r847705009


##########
sdks/go/pkg/beam/runners/vet/testpipeline/staticcheck.conf:
##########
@@ -0,0 +1,16 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+checks = ["inherit", "-U1000"]

Review Comment:
   Staticcheck configs can be applied per-directory. We can exempt the 
testpipeline code from the U1000 check (function not being used) and inherit 
check exemptions from higher up in the hierarchy if they exist. Eventually a 
top-level config would be the default checks minus the deprecation checker, but 
we don't want to ignore unused code in the entire Go SDK.
   
   See https://staticcheck.io/docs/configuration/ for more info





Issue Time Tracking
-------------------

    Worklog Id:     (was: 755427)
    Time Spent: 1.5h  (was: 1h 20m)

> Address Staticcheck Warnings in the Go SDK
> ------------------------------------------
>
>                 Key: BEAM-14240
>                 URL: https://issues.apache.org/jira/browse/BEAM-14240
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go
>            Reporter: Jack McCluskey
>            Priority: P2
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Clean up warnings from the staticcheck tool in the Go SDK with the aim of 
> eventually enabling staticcheck as a precommit. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to